package org.lanqiao.dao;

import org.lanqiao.entity.Type;
import org.lanqiao.mapper.TypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public class TypeDao {

    @Autowired
    private TypeMapper typeMapper;
    /**
     * @Author 刘金渝
     * @Description //TODO
     * @Date 2019/5/22 16:16
     * @Param [] 
     * @explain       查询所有活动
     * @return java.util.List<org.lanqiao.entity.Type>
     */
    
    public List<Type> selectAll(){
        List<Type> types = typeMapper.selectAll();
        return types;
    }
}
